Constructing Huffman Trees in Parallel
نویسندگان
چکیده
We present a parallel algorithm for the Huuman Coding problem. We reduce the Huuman Coding problem to the Concave Least Weight Subsequence problem and give a parallel algorithm that solves the latter problem in O(p n log n) time with n processors on a CREW PRAM. This leads to the rst sublinear time o(n 2)-total work parallel algorithm for Huuman Coding. This reduction of the Huuman Coding problem to the Concave Least Weight Subsequence problem also yields an alternative O(n log n)-time (or linear time { for a sorted input sequence) algorithm for Huuman Coding.
منابع مشابه
A Work Efficient Parallel Algorithm for Constructing Huffman Codes
Given an tilphabet C = (al! . . . , a,) and a corresponding list of weights [WI, . . . , w,], a Huffman code for this alphabet is a prefix code that minimizes the weighted length of a code string, defined to be Cr.., wili, where li is the length of the code assigned to ai. A. Huffman code can be generated in O(n log n) time for an unsorted list of weights alld in Cl(n) time if the weights are a...
متن کاملOptimal Huffman Tree-Height Reduction for Instruction-Level Parallelism
Exposing and exploiting instruction-level parallelism (ILP) is a key component of high performance for modern processors. For example, wide-issue superscalar, VLIW, and dataflow processors only attain high performance when they execute nearby instructions in parallel. This paper shows how to use and modify the Huffman coding tree weight minimization algorithm to expose ILP. We apply Huffman to ...
متن کاملConstructing Binary Huffman Tree1
Huffman coding is one of a most famous entropy encoding methods for lossless data compression [16]. JPEG and ZIP formats employ variants of Huffman encoding as lossless compression algorithms. Huffman coding is a bijective map from source letters into leaves of the Huffman tree constructed by the algorithm. In this article we formalize an algorithm constructing a binary code tree, Huffman tree.
متن کاملBounds on the Number of Huffman and Binary-Ternary Trees
Huffman coding is a widely used method for lossless data compression because it optimally stores data based on how often the characters occur in Huffman trees. An n-ary Huffman tree is a connected, cycle-lacking graph where each vertex can have either n “children” vertices connecting to it, or 0 children. Vertices with 0 children are called leaves. We let hn(q) represent the total number of n-a...
متن کاملParallel Generation of t-ary Trees
A parallel algorithm for generating t-ary tree sequences in reverse B-order is presented. The algorithm generates t-ary trees by 0-1 sequences, and each 0-1 sequences is generated in constant average time O(1). The algorithm is executed on a CREW SM SIMD model, and is adaptive and cost-optimal. Prior to the discussion of the parallel algorithm a new sequential generation with O(1) average time ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- SIAM J. Comput.
دوره 24 شماره
صفحات -
تاریخ انتشار 1995